3.5.69 \(\int \frac {\sec (c+d x) (A+B \sec (c+d x)+C \sec ^2(c+d x))}{(a+a \sec (c+d x))^3} \, dx\) [469]

Optimal. Leaf size=110 \[ -\frac {(A-B+C) \sec (c+d x) \tan (c+d x)}{5 d (a+a \sec (c+d x))^3}+\frac {(A-C) \tan (c+d x)}{3 a d (a+a \sec (c+d x))^2}+\frac {(2 A+3 B+7 C) \tan (c+d x)}{15 d \left (a^3+a^3 \sec (c+d x)\right )} \]

[Out]

-1/5*(A-B+C)*sec(d*x+c)*tan(d*x+c)/d/(a+a*sec(d*x+c))^3+1/3*(A-C)*tan(d*x+c)/a/d/(a+a*sec(d*x+c))^2+1/15*(2*A+
3*B+7*C)*tan(d*x+c)/d/(a^3+a^3*sec(d*x+c))

________________________________________________________________________________________

Rubi [A]
time = 0.15, antiderivative size = 110, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {4163, 4085, 3879} \begin {gather*} \frac {(2 A+3 B+7 C) \tan (c+d x)}{15 d \left (a^3 \sec (c+d x)+a^3\right )}-\frac {(A-B+C) \tan (c+d x) \sec (c+d x)}{5 d (a \sec (c+d x)+a)^3}+\frac {(A-C) \tan (c+d x)}{3 a d (a \sec (c+d x)+a)^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(Sec[c + d*x]*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2))/(a + a*Sec[c + d*x])^3,x]

[Out]

-1/5*((A - B + C)*Sec[c + d*x]*Tan[c + d*x])/(d*(a + a*Sec[c + d*x])^3) + ((A - C)*Tan[c + d*x])/(3*a*d*(a + a
*Sec[c + d*x])^2) + ((2*A + 3*B + 7*C)*Tan[c + d*x])/(15*d*(a^3 + a^3*Sec[c + d*x]))

Rule 3879

Int[csc[(e_.) + (f_.)*(x_)]/(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)), x_Symbol] :> Simp[-Cot[e + f*x]/(f*(b + a*
Csc[e + f*x])), x] /; FreeQ[{a, b, e, f}, x] && EqQ[a^2 - b^2, 0]

Rule 4085

Int[csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_))
, x_Symbol] :> Simp[(A*b - a*B)*Cot[e + f*x]*((a + b*Csc[e + f*x])^m/(a*f*(2*m + 1))), x] + Dist[(a*B*m + A*b*
(m + 1))/(a*b*(2*m + 1)), Int[Csc[e + f*x]*(a + b*Csc[e + f*x])^(m + 1), x], x] /; FreeQ[{a, b, A, B, e, f}, x
] && NeQ[A*b - a*B, 0] && EqQ[a^2 - b^2, 0] && NeQ[a*B*m + A*b*(m + 1), 0] && LtQ[m, -2^(-1)]

Rule 4163

Int[csc[(e_.) + (f_.)*(x_)]*((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_
.) + (f_.)*(x_)]*(b_.) + (a_))^(m_), x_Symbol] :> Simp[(-(a*A - b*B + a*C))*Cot[e + f*x]*Csc[e + f*x]*((a + b*
Csc[e + f*x])^m/(a*f*(2*m + 1))), x] - Dist[1/(a*b*(2*m + 1)), Int[Csc[e + f*x]*(a + b*Csc[e + f*x])^(m + 1)*S
imp[a*B - b*C - 2*A*b*(m + 1) - (b*B*(m + 2) - a*(A*(m + 2) - C*(m - 1)))*Csc[e + f*x], x], x], x] /; FreeQ[{a
, b, e, f, A, B, C}, x] && LtQ[m, -1] && EqQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int \frac {\sec (c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^3} \, dx &=-\frac {(A-B+C) \sec (c+d x) \tan (c+d x)}{5 d (a+a \sec (c+d x))^3}+\frac {\int \frac {\sec (c+d x) (a (4 A+B-C)-a (A-B-4 C) \sec (c+d x))}{(a+a \sec (c+d x))^2} \, dx}{5 a^2}\\ &=-\frac {(A-B+C) \sec (c+d x) \tan (c+d x)}{5 d (a+a \sec (c+d x))^3}+\frac {(A-C) \tan (c+d x)}{3 a d (a+a \sec (c+d x))^2}+\frac {(2 A+3 B+7 C) \int \frac {\sec (c+d x)}{a+a \sec (c+d x)} \, dx}{15 a^2}\\ &=-\frac {(A-B+C) \sec (c+d x) \tan (c+d x)}{5 d (a+a \sec (c+d x))^3}+\frac {(A-C) \tan (c+d x)}{3 a d (a+a \sec (c+d x))^2}+\frac {(2 A+3 B+7 C) \tan (c+d x)}{15 d \left (a^3+a^3 \sec (c+d x)\right )}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.62, size = 156, normalized size = 1.42 \begin {gather*} \frac {\sec \left (\frac {c}{2}\right ) \sec ^5\left (\frac {1}{2} (c+d x)\right ) \left (5 (8 A+3 B+4 C) \sin \left (\frac {d x}{2}\right )-15 (2 A+B) \sin \left (c+\frac {d x}{2}\right )+20 A \sin \left (c+\frac {3 d x}{2}\right )+15 B \sin \left (c+\frac {3 d x}{2}\right )+10 C \sin \left (c+\frac {3 d x}{2}\right )-15 A \sin \left (2 c+\frac {3 d x}{2}\right )+7 A \sin \left (2 c+\frac {5 d x}{2}\right )+3 B \sin \left (2 c+\frac {5 d x}{2}\right )+2 C \sin \left (2 c+\frac {5 d x}{2}\right )\right )}{240 a^3 d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(Sec[c + d*x]*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2))/(a + a*Sec[c + d*x])^3,x]

[Out]

(Sec[c/2]*Sec[(c + d*x)/2]^5*(5*(8*A + 3*B + 4*C)*Sin[(d*x)/2] - 15*(2*A + B)*Sin[c + (d*x)/2] + 20*A*Sin[c +
(3*d*x)/2] + 15*B*Sin[c + (3*d*x)/2] + 10*C*Sin[c + (3*d*x)/2] - 15*A*Sin[2*c + (3*d*x)/2] + 7*A*Sin[2*c + (5*
d*x)/2] + 3*B*Sin[2*c + (5*d*x)/2] + 2*C*Sin[2*c + (5*d*x)/2]))/(240*a^3*d)

________________________________________________________________________________________

Maple [A]
time = 0.60, size = 113, normalized size = 1.03

method result size
derivativedivides \(\frac {\frac {A \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {\left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B}{5}+\frac {C \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {2 A \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+\frac {2 C \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+C \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 d \,a^{3}}\) \(113\)
default \(\frac {\frac {A \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {\left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B}{5}+\frac {C \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {2 A \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+\frac {2 C \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+C \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 d \,a^{3}}\) \(113\)
risch \(\frac {2 i \left (15 A \,{\mathrm e}^{4 i \left (d x +c \right )}+30 A \,{\mathrm e}^{3 i \left (d x +c \right )}+15 B \,{\mathrm e}^{3 i \left (d x +c \right )}+40 A \,{\mathrm e}^{2 i \left (d x +c \right )}+15 B \,{\mathrm e}^{2 i \left (d x +c \right )}+20 C \,{\mathrm e}^{2 i \left (d x +c \right )}+20 \,{\mathrm e}^{i \left (d x +c \right )} A +15 B \,{\mathrm e}^{i \left (d x +c \right )}+10 C \,{\mathrm e}^{i \left (d x +c \right )}+7 A +3 B +2 C \right )}{15 d \,a^{3} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{5}}\) \(141\)
norman \(\frac {\frac {\left (A -B +C \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 a d}+\frac {\left (A +B +C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 a d}-\frac {\left (4 A +3 B +2 C \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 a d}-\frac {\left (8 A -3 B -2 C \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{30 a d}+\frac {\left (19 A +6 B -C \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{30 a d}}{\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2} a^{2}}\) \(154\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/(a+a*sec(d*x+c))^3,x,method=_RETURNVERBOSE)

[Out]

1/4/d/a^3*(1/5*A*tan(1/2*d*x+1/2*c)^5-1/5*B*tan(1/2*d*x+1/2*c)^5+1/5*C*tan(1/2*d*x+1/2*c)^5-2/3*A*tan(1/2*d*x+
1/2*c)^3+2/3*C*tan(1/2*d*x+1/2*c)^3+A*tan(1/2*d*x+1/2*c)+B*tan(1/2*d*x+1/2*c)+C*tan(1/2*d*x+1/2*c))

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 179, normalized size = 1.63 \begin {gather*} \frac {\frac {C {\left (\frac {15 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {10 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}}\right )}}{a^{3}} + \frac {A {\left (\frac {15 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {10 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}}\right )}}{a^{3}} + \frac {3 \, B {\left (\frac {5 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {\sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}}\right )}}{a^{3}}}{60 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/(a+a*sec(d*x+c))^3,x, algorithm="maxima")

[Out]

1/60*(C*(15*sin(d*x + c)/(cos(d*x + c) + 1) + 10*sin(d*x + c)^3/(cos(d*x + c) + 1)^3 + 3*sin(d*x + c)^5/(cos(d
*x + c) + 1)^5)/a^3 + A*(15*sin(d*x + c)/(cos(d*x + c) + 1) - 10*sin(d*x + c)^3/(cos(d*x + c) + 1)^3 + 3*sin(d
*x + c)^5/(cos(d*x + c) + 1)^5)/a^3 + 3*B*(5*sin(d*x + c)/(cos(d*x + c) + 1) - sin(d*x + c)^5/(cos(d*x + c) +
1)^5)/a^3)/d

________________________________________________________________________________________

Fricas [A]
time = 2.44, size = 102, normalized size = 0.93 \begin {gather*} \frac {{\left ({\left (7 \, A + 3 \, B + 2 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (2 \, A + 3 \, B + 2 \, C\right )} \cos \left (d x + c\right ) + 2 \, A + 3 \, B + 7 \, C\right )} \sin \left (d x + c\right )}{15 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/(a+a*sec(d*x+c))^3,x, algorithm="fricas")

[Out]

1/15*((7*A + 3*B + 2*C)*cos(d*x + c)^2 + 3*(2*A + 3*B + 2*C)*cos(d*x + c) + 2*A + 3*B + 7*C)*sin(d*x + c)/(a^3
*d*cos(d*x + c)^3 + 3*a^3*d*cos(d*x + c)^2 + 3*a^3*d*cos(d*x + c) + a^3*d)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {A \sec {\left (c + d x \right )}}{\sec ^{3}{\left (c + d x \right )} + 3 \sec ^{2}{\left (c + d x \right )} + 3 \sec {\left (c + d x \right )} + 1}\, dx + \int \frac {B \sec ^{2}{\left (c + d x \right )}}{\sec ^{3}{\left (c + d x \right )} + 3 \sec ^{2}{\left (c + d x \right )} + 3 \sec {\left (c + d x \right )} + 1}\, dx + \int \frac {C \sec ^{3}{\left (c + d x \right )}}{\sec ^{3}{\left (c + d x \right )} + 3 \sec ^{2}{\left (c + d x \right )} + 3 \sec {\left (c + d x \right )} + 1}\, dx}{a^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(A+B*sec(d*x+c)+C*sec(d*x+c)**2)/(a+a*sec(d*x+c))**3,x)

[Out]

(Integral(A*sec(c + d*x)/(sec(c + d*x)**3 + 3*sec(c + d*x)**2 + 3*sec(c + d*x) + 1), x) + Integral(B*sec(c + d
*x)**2/(sec(c + d*x)**3 + 3*sec(c + d*x)**2 + 3*sec(c + d*x) + 1), x) + Integral(C*sec(c + d*x)**3/(sec(c + d*
x)**3 + 3*sec(c + d*x)**2 + 3*sec(c + d*x) + 1), x))/a**3

________________________________________________________________________________________

Giac [A]
time = 0.49, size = 115, normalized size = 1.05 \begin {gather*} \frac {3 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 3 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 3 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 10 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 10 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 15 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 15 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 15 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{60 \, a^{3} d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/(a+a*sec(d*x+c))^3,x, algorithm="giac")

[Out]

1/60*(3*A*tan(1/2*d*x + 1/2*c)^5 - 3*B*tan(1/2*d*x + 1/2*c)^5 + 3*C*tan(1/2*d*x + 1/2*c)^5 - 10*A*tan(1/2*d*x
+ 1/2*c)^3 + 10*C*tan(1/2*d*x + 1/2*c)^3 + 15*A*tan(1/2*d*x + 1/2*c) + 15*B*tan(1/2*d*x + 1/2*c) + 15*C*tan(1/
2*d*x + 1/2*c))/(a^3*d)

________________________________________________________________________________________

Mupad [B]
time = 3.19, size = 73, normalized size = 0.66 \begin {gather*} \frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (A-B+C\right )}{20\,a^3\,d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (2\,A-2\,C\right )}{12\,a^3\,d}+\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (A+B+C\right )}{4\,a^3\,d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A + B/cos(c + d*x) + C/cos(c + d*x)^2)/(cos(c + d*x)*(a + a/cos(c + d*x))^3),x)

[Out]

(tan(c/2 + (d*x)/2)^5*(A - B + C))/(20*a^3*d) - (tan(c/2 + (d*x)/2)^3*(2*A - 2*C))/(12*a^3*d) + (tan(c/2 + (d*
x)/2)*(A + B + C))/(4*a^3*d)

________________________________________________________________________________________